# -*- coding: utf-8 -*-

from nbclass.tools import *


def remove_special_character(text):
    # 匹配中文汉字、数字、字母
    chinese = re.findall(r'[\u4e00-\u9fa5\da-zA-Z]', ensure_str(text), re.S)

    return ''.join(chinese)
